_m_o_d_e specifies how source and destination colors are combined. It must
be GGGGLLLL____FFFFUUUUNNNNCCCC____AAAADDDDDDDD, GGGGLLLL____FFFFUUUUNNNNCCCC____SSSSUUUUBBBBTTTTRRRRAAAACCCCTTTT, GGGGLLLL____FFFFUUUUNNNNCCCC____RRRREEEEVVVVEEEERRRRSSSSEEEE____SSSSUUUUBBBBTTTTRRRRAAAACCCCTTTT, GGGGLLLL____MMMMIIIINNNN,
GGGGLLLL____MMMMAAAAXXXX, GGGGLLLL____AAAALLLLPPPPHHHHAAAA____MMMMIIIINNNN____SSSSGGGGIIIIXXXX, or GGGGLLLL____AAAALLLLPPPPHHHHAAAA____MMMMAAAAXXXX____SSSSGGGGIIIIXXXX.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
The blend equation determines how a new pixel (the ``source'' color) is
combined with a pixel already in the framebuffer (the ``destination''
color).
GGGGLLLL____MMMMIIIINNNN
sets the blend equation so that each component of the result color
is the minimum of the corresponding components of the source and
destination colors.
GGGGLLLL____MMMMAAAAXXXX
sets the blend equation so that each component of the result color
is the maximum of the corresponding components of the source and
Is like GGGGLLLL____FFFFUUUUNNNNCCCC____AAAADDDDDDDD except the product of the source factor and the
source color is componentwise subtracted from the product of the
destination factor and the destination color. The result is clamped
to the range [0, 1].
Rr = max(0, R d - R s )
d R s R
Gr = max(0, G d - G s )
d G s G
Br = max(0, B d - B s )
d B s B
Ar = max(0, A d - A s )
d A s A
The GGGGLLLL____MMMMIIIINNNN and GGGGLLLL____MMMMAAAAXXXX equations are useful for applications that analyze
image data (image thresholding against a constant color, for example).
The GGGGLLLL____FFFFUUUUNNNNCCCC____AAAADDDDDDDD equation is useful for antialiasing and transparency,
among other things.
Initially, the blend equation is set to GGGGLLLL____FFFFUUUUNNNNCCCC____AAAADDDDDDDD.
NNNNOOOOTTTTEEEESSSS
ggggllllBBBBlllleeeennnnddddEEEEqqqquuuuaaaattttiiiioooonnnn is part of the GGGGLLLL____AAAARRRRBBBB____iiiimmmmaaaaggggiiiinnnngggg subset. ggggllllBBBBlllleeeennnnddddEEEEqqqquuuuaaaattttiiiioooonnnn is
present only if GGGGLLLL____AAAARRRRBBBB____iiiimmmmaaaaggggiiiinnnngggg is returned when ggggllllGGGGeeeettttSSSSttttrrrriiiinnnngggg is called
with GGGGLLLL____EEEEXXXXTTTTEEEENNNNSSSSIIIIOOOONNNNSSSS as its argument.
The GGGGLLLL____MMMMIIIINNNN, GGGGLLLL____MMMMAAAAXXXX, GGGGLLLL____AAAALLLLPPPPHHHHAAAA____MMMMIIIINNNN____SSSSGGGGIIIIXXXX and GGGGLLLL____AAAALLLLPPPPHHHHAAAA____MMMMAAAAXXXX____SSSSGGGGIIIIXXXX equations do
not use the source or destination factors, only the source and
GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____EEEENNNNUUUUMMMM is generated if _m_o_d_e is not one of GGGGLLLL____FFFFUUUUNNNNCCCC____AAAADDDDDDDD,
GGGGLLLL____FFFFUUUUNNNNCCCC____SSSSUUUUBBBBTTTTRRRRAAAACCCCTTTT, GGGGLLLL____FFFFUUUUNNNNCCCC____RRRREEEEVVVVEEEERRRRSSSSEEEE____SSSSUUUUBBBBTTTTRRRRAAAACCCCTTTT, GGGGLLLL____MMMMAAAAXXXX, or GGGGLLLL____MMMMIIIINNNN.
GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____OOOOPPPPEEEERRRRAAAATTTTIIIIOOOONNNN is generated if ggggllllBBBBlllleeeennnnddddEEEEqqqquuuuaaaattttiiiioooonnnn is executed between
the execution of ggggllllBBBBeeeeggggiiiinnnn and the corresponding execution of ggggllllEEEEnnnndddd.